package com.tiku.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tiku.common.ResultJson;
import com.tiku.entity.CourseCategories;
import com.tiku.service.CourseCategoriesService;
import com.tiku.mapper.CourseCategoriesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class CourseCategoriesServiceImpl extends ServiceImpl<CourseCategoriesMapper, CourseCategories>
    implements CourseCategoriesService{


    @Autowired
    private CourseCategoriesMapper courseCategoriesMapper;
    @Override
    public ResultJson getClassList() {

        List<CourseCategories> courseCategories = courseCategoriesMapper.selectList(null);

        return ResultJson.success(courseCategories);

    }


}




